/**
 * 
 */
package xj.toolkit.fsm;

/**
 * @author hp
 *
 */
public interface State {
	public boolean enter(FiniteStateMachine fsm, FSMContext ctx);
	public void leave(FiniteStateMachine fsm, FSMContext ctx);
	
	//	return	value is next State.
	public String acceptEvent(FiniteStateMachine fsm, FSMContext ctx, Object event);
}
